package com.jr.dao;

import com.jr.entity.InvoicingRecord;

import java.util.List;

public interface InvoicingRecordDao {

    int addInvoice(InvoicingRecord invoicingRecord)throws Exception;
    int deleteInvoice( )throws Exception;
    /**
     * 主页展示发票信息
     * @param enterpriseId
     * @return
     * @throws Exception
     */
    List<InvoicingRecord> allInvoiceMessage(Integer enterpriseId) throws Exception;


    /**
     * 根据发票id进行退票
     * @param invoiceId
     * @return
     * @throws Exception
     */
    int refundTicket(Integer invoiceId)throws Exception;
}
